<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Generator Operators</title>
<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../../index.html" title="Spirit 2.59">
<link rel="up" href="../primitive_generators.html" title="Karma Generators">
<link rel="prev" href="auto.html" title="Auto Generators">
<link rel="next" href="directives.html" title="Generator Directives">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="auto.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directives.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h5 class="title">
<a name="spirit.karma.quick_reference.primitive_generators.operators"></a><a class="link" href="operators.html" title="Generator Operators">Generator
          Operators</a>
</h5></div></div></div>
<p>
            See here for more information about <a class="link" href="../../reference/operator.html" title="Generator Operators">Generator
            Operators</a>.
          </p>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                    <p>
                      Expression
                    </p>
                  </th>
<th>
                    <p>
                      Attribute
                    </p>
                  </th>
<th>
                    <p>
                      Description
                    </p>
                  </th>
</tr></thead>
<tbody>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/not_predicate.html" title="Not-Predicate Generator (!a)"><code class="computeroutput"><span class="special">!</span><span class="identifier">a</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">A</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      Not predicate. Ensure that <code class="computeroutput"><span class="identifier">a</span></code>
                      does not succeed generating, but don't create any output
                    </p>
                  </td>
</tr>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/and_predicate.html" title="And-Predicate Generator (&amp;a)"><code class="computeroutput"><span class="special">&amp;</span><span class="identifier">a</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">A</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      And predicate. Ensure that <code class="computeroutput"><span class="identifier">a</span></code>
                      does succeed generating, but don't create any output
                    </p>
                  </td>
</tr>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/optional.html" title="Optional Generator (-a)"><code class="computeroutput"><span class="special">-</span><span class="identifier">a</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">optional</span><span class="special">&lt;</span><span class="identifier">A</span><span class="special">&gt;</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      Optional. Generate <code class="computeroutput"><span class="identifier">a</span></code>
                      zero or one time
                    </p>
                  </td>
</tr>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/kleene.html" title="Kleene Star Generator (*a)"><code class="computeroutput"><span class="special">*</span><span class="identifier">a</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">vector</span><span class="special">&lt;</span><span class="identifier">A</span><span class="special">&gt;</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      Kleene. Generate <code class="computeroutput"><span class="identifier">a</span></code>
                      zero or more times
                    </p>
                  </td>
</tr>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/plus.html" title="Plus Generator (+a)"><code class="computeroutput"><span class="special">+</span><span class="identifier">a</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">vector</span><span class="special">&lt;</span><span class="identifier">A</span><span class="special">&gt;</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      Plus. Generate <code class="computeroutput"><span class="identifier">a</span></code>
                      one or more times
                    </p>
                  </td>
</tr>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/alternative.html" title="Alternative Generator (a | b)"><code class="computeroutput"><span class="identifier">a</span> <span class="special">|</span>
                      <span class="identifier">b</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">variant</span><span class="special">&lt;</span><span class="identifier">A</span><span class="special">,</span>
                      <span class="identifier">B</span><span class="special">&gt;</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      Alternative. Generate <code class="computeroutput"><span class="identifier">a</span></code>
                      or <code class="computeroutput"><span class="identifier">b</span></code>
                    </p>
                  </td>
</tr>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/sequence.html" title="Sequence Generator (a &lt;&lt; b)"><code class="computeroutput"><span class="identifier">a</span> <span class="special">&lt;&lt;</span>
                      <span class="identifier">b</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">tuple</span><span class="special">&lt;</span><span class="identifier">A</span><span class="special">,</span>
                      <span class="identifier">B</span><span class="special">&gt;</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      Sequence. Generate <code class="computeroutput"><span class="identifier">a</span></code>
                      followed by <code class="computeroutput"><span class="identifier">b</span></code>
                    </p>
                  </td>
</tr>
<tr>
<td>
                    <p>
                      <a class="link" href="../../reference/operator/list.html" title="List Generator (a % b)"><code class="computeroutput"><span class="identifier">a</span> <span class="special">%</span>
                      <span class="identifier">b</span></code></a>
                    </p>
                  </td>
<td>
                    <p>
                      <code class="computeroutput"><span class="identifier">vector</span><span class="special">&lt;</span><span class="identifier">A</span><span class="special">&gt;</span></code>
                    </p>
                  </td>
<td>
                    <p>
                      List. Generate <code class="computeroutput"><span class="identifier">a</span></code>
                      delimited <code class="computeroutput"><span class="identifier">b</span></code>
                      one or more times
                    </p>
                  </td>
</tr>
</tbody>
</table></div>
<div class="blockquote"><blockquote class="blockquote"><p>
              For more information about the attribute propagation rules implemented
              by the compound generators please see <a class="link" href="../compound_attribute_rules.html" title="Compound Attribute Rules">Generator
              Compound Attribute Rules</a>.
            </p></blockquote></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2001-2011 Joel de Guzman, Hartmut Kaiser<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="auto.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directives.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
